package com.hspedu.homework.homework05;

public class Staff extends Worker {

    public Staff(String name, double salary) {
        super(name, salary);
    }

    @Override
    public void printSal() {
        System.out.println("工人" +  getName() + "年收入为" + getSalary() * 12);
    }

}
